/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package seres;

/**
 *
 * @author Doreley Hernandez
 */
public class Marciano extends Guerrero {

    

       public   Marciano(String soy) {
            super(soy);
           // this.soy = soy;
            total++;

        }

        public void recibeDisparo(int i) {
            if (vivo && blanco == i) {
                vivo = false;
                total--;
                System.out.println(soy + "Muerto por disparo nº " + i);
            }
        }

        public static int getTotal() {
            return total;
        }
        private static int total = 0;
        //private String soy;

    }


